// 错误响应实体
package org.example.backend.exception;

public class ErrorResponse {
    private String message;
    private String details;
    private int code;
    private long timestamp;
    public ErrorResponse(String message, int code, long timestamp) {
        this.message = message;
        this.code = code;
        this.timestamp = timestamp;
    }

    public ErrorResponse(int code, String message, long timestamp, String details) {
        this.code = code;
        this.message = message;
        this.timestamp = timestamp;
        this.details = details;
    }
    // Getters and Setters
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

}
